# 手机号码正则
from backend import settings

REGEX_MOBILE = r'^1(3\d|4[5-9]|5[0-35-9]|6[567]|7[0-8]|8\d|9[0-35-9])\d{8}$'

# 邮箱正则
REGEX_EMAIL = r'^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$'

# 图片后缀名校验正确
REGEX_IMAGE_SUFFIX = r'(\s|\S)+.(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp' \
                     r'|jpeg)+$'

TIER1 = '1'
TIER2 = '2'
TIER3 = '3'
TIER4 = '4'

DB = settings.DATABASES.get('default')
